package com.thoughtworks.bytecode2class.instruction;

import java.util.List;

public class ConstantPoolIndexInstruction extends Instruction {

    ConstantPoolIndexInstruction(OpCode opCode, List<Byte> bytes, int offset) {
        super(opCode, bytes, offset);
    }

    public String getParameter() {
        int parameter = bytes.get(offset + 1) << 8 | bytes.get(offset + 2);
        return "#" + String.valueOf(parameter);
    }
}
